Skip to main content

8.1 Quality Scenarios

Ar42 specifications helper

Contents

Concretization of (sometimes vague or implicit) quality requirements using (quality) scenarios.

These scenarios describe what should happen when a stimulus arrives at the system.

For architects, two kinds of scenarios are important:

  • Usage scenarios (also called application scenarios or use case scenarios) describe the system’s runtime reaction to a certain stimulus. This also includes scenarios that describe the system’s efficiency or performance. Example: The system reacts to a user’s request within one second.

  • Change scenarios describe a modification of the system or of its immediate environment. Example: Additional functionality is implemented or requirements for a quality attribute change.

Motivation

Scenarios make quality requirements concrete and allow to more easily measure or decide whether they are fulfilled.

Especially when you want to assess your architecture using methods like ATAM you need to describe your quality goals (from section 1.2) more precisely down to a level of scenarios that can be discussed and evaluated.

Form

Tabular or free form text.

IDQuality attribute (ISO 25010)Scenario typeStimulus (source → event)Environment / artefactResponse & measurable criterion
P-1Time-behaviour / ResponsivenessUsageUser clicks Send RFQ at peak load (20 searches · s⁻¹ & 10 quote uploads · s⁻¹).SPA + Spring REST95 % of pages paint < 1 s; REST returns 200 in < 300 ms.
P-2Throughput / PerformanceUsageScheduler lists 1000 RFQs via /rfqs?limit=1000.DB warm, 4 vCPUServer completes in < 500 ms avg.
S-1Confidentiality & IntegrityUsageUn-authorised account reads another provider’s quote.REST controllerRequest refused HTTP 403, audit log entry in ≤ 200 ms.
S-1Confidentiality & IntegrityUsageUn-authorised account access provider evaluation.REST controllerRequest refused HTTP 403, audit log entry in ≤ 200 ms.
S-1Confidentiality & IntegrityUsageUn-authorised account access all the rfqREST controllerRequest refused HTTP 403, audit log entry in ≤ 200 ms.
S-3Security – WSUsageAttacker subscribes to /topic/providers/XYZ without role.STOMP gatewayConnection closed, no message delivered.
M-1ModifiabilityChangePO adds TechSpec “Broadcast Standard” (ATSC, NTSC…).Code repoDomain model & UI shipped in < 5 person-days CI lead time; tests pass.
I-1InteroperabilityUsageSAP Batch Job fetches 200 RFQs./openapi.json contractAverage latency < 200 ms; JSON conforms to schema v1.
I-2Interoperability – discoverabilityChangeMobile-app team requests self links.API v1.2HAL links (_links.self) available for RFQ & Quote resources.
U-1Usability – efficiencyUsageRFQ manager uploads CSV (100 lines).BrowserItems created in ≤ 2 min incl. validation errors.
R-1AvailabilityUsageNormal opsProduction cluster≥ 99.5 % uptime per calendar month (≙ < 220 min downtime).